﻿using System;
using System.Collections.Generic;
using StackExchange.Redis;

namespace Micro.Extensions.Cache.Redis
{
    public interface IRedisDatabaseProvider : IDisposable
    {
        /// <summary>
        /// 获取db
        /// </summary>
        /// <returns></returns>
        IDatabase GetDatabase();
        /// <summary>
        /// 获取server 列表
        /// </summary>
        /// <returns></returns>
        IEnumerable<IServer> GetServerList();
    }
}